package Test;

import java.util.Scanner;

public class Text {
    public static void main(String[] args) {
        Register register = new Register();
        Scanner input = new Scanner(System.in);
        System.out.print("请输入用户名：");
        String name = input.next();
        System.out.print("请输入密码：");
        String psw = input.next();
        System.out.print("请再次输入密码：");
        String psw1 = input.next();
        int num = register.cherk(name, psw, psw1);
        switch (num) {
            case -1:
                System.out.println("用户名长度不正确");
                break;
            case -2:
                System.out.println("用户名长度不正确");
                break;
            case -3:
                System.out.println("两次密码输入不正确");
                break;
            case 1:
                System.out.println("两次密码输入不正确");
                break;


        }


    }
}